import React, { Component } from 'react'
import Child11 from './Child11'
export default class Child1 extends Component {
  constructor(){
    super()
    this.state={
      count:0
    }
  }
  render() {
    console.log('------Child1的render--------------');
    return (
      <div style={{width:'300px',height:'500px',backgroundColor:'springgreen'}}>
        <button onClick={()=>this.setState({count:this.state.count+1})}>更新Child1</button>
        <Child11></Child11>
      </div>
    )
  }
}
